<!doctype html>
<html class="code">

<head>
    <meta charset="utf-8" />
    <title>Flex Items</title>
    <style>
        head {
            display: block;
        }

        style#editme {
            display: block;
            -webkit-user-modify: read-write-plaintext-only;
            white-space: pre-wrap;
            padding: 1ch 2ch;
            margin: 2ch;
            border: 0.25ch solid rgba(0, 0, 0, 0.33);
            border-radius: 1ch;
            background-color: hsl(120, 20%, 90%);
            font: 1.2rem Consolas, "Courier New", Courier, monospace;
            max-height: 50vh;
            overflow: auto;
        }

        style#editme::before {
            content: "Editable CSS";
            display: block;
            margin: -1ch -2ch 1em;
            padding: 0.75ch 1ch 0.25ch;
            background: rgba(0, 42, 0, 0.15);
            color: #666;
            border-bottom: 2px solid rgba(0, 0, 0, 0.33);
            font-weight: bold;
            font-family: sans-serif;
            text-align: center;
        }
    </style>
    <style id="editme" contenteditable>
        body {
            font-size: 20px;
            text-align: center;
        }

        div {
            background-color: rgba(0, 0, 0, 0.1);
        }

        article {
            width: 400px;
        }

        article>div {
            display: flex;
            border: 1px dashed;
            padding: 2px;
            min-height: 100px;
        }

        div>div {
            border: 1px solid;
            margin: 2px;
            /*
    this makes the extra distributed space available less than 450px */
            padding: 40px 0;
            width: 400px;
            font-size: 1rem;
        }

        p {
            margin-top: 0;
        }
    </style>
</head>

<body>
    <article>
        <div>
            <div >flex: 0</div>
            <div style="flex: 0">flex: 0</div>
            <div style="flex: 0">flex: 0</div>
        </div>
        <p>Flex container⤴</p>
    </article>




    <article>
        <div>
            <div style="flex: 0">flex: 0</div>
            <div style="flex: 0">flex: 0</div>
            <div style="flex: 1">flex: 1</div>
        </div>
        <p>Flex container⤴</p>
    </article>

    <article>
        <div>
            <div style="flex: 1">flex: 1</div>
            <div style="flex: 1">flex: 1</div>
            <div style="flex: 3">flex: 3</div>
        </div>
        <p>Flex container⤴</p>
    </article>




    <article>
        <div>
            <div style="flex: 0.5">flex: 0.5</div>
            <div style="flex: 0.5">flex: 0.5</div>
            <div style="flex: 1.5">flex: 1.5</div>
        </div>
        <p>Flex container⤴</p>
    </article>
</body>

</html>